﻿@model DBTramite.BussinesEntities.T_Emisor

@{
    ViewBag.Title = "Registrar";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Registro de Persona Juridica</h2>
<p>
    @Html.ActionLink("Crear Persona Natural", "CreateNatural")
</p>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Persona Jurídica</legend>

        <div class="editor-label">
           @* @Html.LabelFor(model => model.tipopersona)*@
            Tipo de Persona:
        </div>
        <div class="editor-field">

            @Html.TextBoxFor(model => model.tipopersona, new { @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.tipopersona)
        </div>

        <div class="editor-label">
           @* @Html.EditorFor(model => model.codemisor)*@
          
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.codemisor)
            @Html.ValidationMessageFor(model => model.codemisor)
        </div>

        <div class="editor-label">
           @* @Html.LabelFor(model => model.nombre)*@
            Nombre:
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.nombre)
            @Html.ValidationMessageFor(model => model.nombre)
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.apepaterno)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.apepaterno)
            @Html.ValidationMessageFor(model => model.apepaterno)
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.apematerno)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.apematerno)
            @Html.ValidationMessageFor(model => model.apematerno)
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.dni)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.dni)
            @Html.ValidationMessageFor(model => model.dni)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.ruc)*@
            RUC:
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ruc)
            @Html.ValidationMessageFor(model => model.ruc)
        </div>

        <div class="editor-label">
          @*  @Html.LabelFor(model => model.direccion)*@
            Direccion:
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.direccion)
            @Html.ValidationMessageFor(model => model.direccion)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.telefono)*@
            Teléfono:
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.telefono)
            @Html.ValidationMessageFor(model => model.telefono)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.email)*@
            Correo Electronico:
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.email)
            @Html.ValidationMessageFor(model => model.email)
        </div>

         <div class="editor-label">
            @Html.HiddenFor(model => model.id_dep)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.id_dep)
            @Html.ValidationMessageFor(model => model.id_dep)
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.id_old)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.id_old)
            @Html.ValidationMessageFor(model => model.id_old)
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.codusuario)
            
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.codusuario)
            @Html.ValidationMessageFor(model => model.codusuario)
        </div>

        <p>
            <input type="submit" value="Guardar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "BusquedaJuridica")
</div>

@section Scripts {
    @*@Scripts.Render("~/bundles/jqueryval")*@

    <script type="text/javascript">
        $(function () {
            $('#codemisor').width('145');
        });
    
        $(function () {
            $('#codusuario').width('145');
        });

     </script>
}
